interface MoreType {
  seo_title?: string;
  seo_keywords?: string;
 thumbnails?: any[];
  template?: string;
  is_slide?: number;
  is_jump?: number;
  is_watermark?: boolean;
  jump_url?: string;
  is_payread?: number;
  price?: number;
  associationids?: number[];
}
interface DataType {
  id: number;
  update_time: number;
  published_time: string;
  post_title: string;
   thumbnails?: any[];
  is_top: number;
  recommended: number;
  post_hits: number;
  post_status: number;
  post_type: number;
  category_id: number;
  category_name: string;
  url: string;
}

interface AddDataType {
  id?: number;
  is_top?: number;
  recommended?: number;
  post_hits?: number;
  published_time?: string;
  post_title: string;
  post_keywords?: string[];
  post_excerpt?: string;
  post_source?: string;
  thumbnails?: any[];
  post_content?: string;
  more: MoreType;
  categories: number[];
  attributes?: {
    module: any[];
    parameter: any[];
    spec: any[];
  };
}

interface UpdataType {
  user_login: string; // 用户名
  user_email: string; // 邮箱
  user_pass: string; // 密码
  role_ids: object; // 角色ids
  id?: number;
}

interface StateType {
  form: AddDataType;
  attributes: {
    module: any[];
    parameter: any[];
    spec: any[];
  };
  thumbnails:any[];
  tags: any[];
  moduleName: string;
  categoriesTree: any;
  modules: any[];
  listThemeFiles: any[];
  articleThemeFiles: any[];
}
type AttriButesType = 'module' | 'parameter' | 'spec';
export type {
  AddDataType,
  AttriButesType,
  DataType,
  MoreType,
  StateType,
  UpdataType,
};
